import { post, get } from '../plugins/request'

export const login = (data) => post('/api/common/login', data)

export const codeLogin = (data) => post('/api/common/codeLogin', data)

export const userInfoSubmit = (data) => post('/api/user/userInfoSubmit', data)

export const getUserInfo = (data) => get('/api/user/userInfo', data)

export const fileDelete = (data) => post('/api/user/fileDelete', data)

export const sceneRecordSubmit = (data) =>
  post('/api/user/sceneRecordSubmit', data)

export const sceneRecord = (data) => get('/api/user/sceneRecord', data)

export const sceneRecordInfo = (data) => get('/api/user/sceneRecordInfo', data)

export const sceneRecordEdit = (data) => post('/api/user/sceneRecordEdit', data)

export const deleteSceneRecord = (data) => post('/api/user/sceneRecord/delete', data)